/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

body {
  margin: 0;
  font-family: sans-serif;
}

a {
  color: #409eff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #66b1ff;
}

input[type="text"], input[type="email"], input[type="password"] {
  box-sizing: border-box;
  height: 30px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  padding: 0 8px;
  font-size: 14px;
  transition: outline 0.2s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: 2px solid gray;
}

textarea {
  box-sizing: border-box;
  border: 1px solid #cccccc;
  border-radius: 3px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  padding: 6px 8px;
  font-size: 14px;
  font-family: sans-serif;
  transition: outline 0.2s;
}

textarea:focus {
  outline: 2px solid gray;
}

button, input[type="submit"], select {
  height: 30px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background-color: white;
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover, input[type="submit"]:hover, select:hover {
  background-color: #eeeeee;
}

table {
  width: 100%;
  border-collapse: collapse;
}

tbody tr {
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: #eeeeee;
}

th {
  border-top: 1px solid #cccccc;
  color: #909090;
}

th, td {
  border-bottom: 1px solid #cccccc;
  padding: 8px 20px;
}

@keyframes alert {
  0% { top: -10%; }
  20% { top: 10%; }
  80% { top: 10%; }
  100% { top: -10%; }
}

.alert {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 30px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  background-color: white;
  animation: 4s ease-in-out forwards alert;
}

.navbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  border-bottom: 1px solid #cccccc;
  padding: 8px 30px;
  display: flex;
}

.navbar > span {
  margin-left: 20px;
}

.navbar-right {
  margin-left: auto;
}

.main {
  margin: 0 auto;
  padding: 50px;
  width: 1000px;
}
